package com.hosp.mapper;

import java.util.List;

import com.hosp.bean.Behospital;
import com.hosp.bean.BehospitalExample;
import com.hosp.bean.Chargeproject;
import com.hosp.controller.dto.BeHosiptalDTO;
import com.hosp.vo.BeHospitalVO;
import org.apache.ibatis.annotations.Param;

public interface BehospitalMapper {
    long countByExample(BehospitalExample example);

    int deleteByExample(BehospitalExample example);

    int deleteByPrimaryKey(Integer behId);

    int insert(Behospital record);

    int insertSelective(Behospital record);

    List<Behospital> selectByExample(BehospitalExample example);

    Behospital selectByPrimaryKey(Integer behId);

    int updateByExampleSelective(@Param("record") Behospital record, @Param("example") BehospitalExample example);

    int updateByExample(@Param("record") Behospital record, @Param("example") BehospitalExample example);

    int updateByPrimaryKeySelective(Behospital record);

    int updateByPrimaryKey(Behospital record);

    List<Chargeproject> selectChargeproject(Integer behId);

    Long selectTotalPayment(Integer behId);

    Long selectDrugPayment(Integer behId);

    List<Chargeproject> selectChargeprojectWithDrug(Integer behId);

    /**
     * 查询住院人详细信息
     *
     * @param beHosiptalDTO 查询条件
     * @return 响应
     */
    List<BeHospitalVO> selectDetail(@Param("beHosiptalDTO") BeHosiptalDTO beHosiptalDTO);
}